<% @page_title = "Resultado da Procura" %>

<table cellpadding="7" cellspacing="0">
  <tr>
    <th>Nome</th>
    <th>Telefone</th>
    <th>Celular</th>
    <th>Email</th>
  </tr>

  <% for user in session[:users] -%>
    <tr class="entry">
      <td><%= user.name %></td>
      <td><%= user.phone %></td>
      <td><%= user.cell %></td>
      <td><%= user.email %></td>
      <td><%= link_to 'Editar', edit_user_path(user) %></td>
      <td><%= link_to 'Excluir', user, :confirm => "Deseja realmente excluir #{user.name}?", :method => :delete %></td>
    </tr>
   <% end %>

</table>

<br /> <%= link_to "Nova Busca", :controller => 'users', :action => 'index' %>